Forum : When I try to connect to mysql from php I get this error: "Call to unsupported or undefined function mysql_connect()?
Brief description  about Online courses   join in Online courses
View Balu  Prasad 's Profile

When I try to connect to mysql from php I get this error: "Call to unsupported or undefined function mysql_connect()?

Hi sir,

When I try to connect to mysql from php I get this error: "Call to unsupported or undefined function mysql_connect();
can you tell me the solution for this....
Asked by Balu Prasad | Nov 27, 2009 |  Reply now
Replies (1)
View teacher siliconindia 's Profile
Hi Balu Prasad,

Either you are missing mysql support in the php module or you need to load mysql dynamicly in your scripts by inserting:

dl("mysql.so"); (on unix)
dl("mysql.dll"); (on windows);

in the top of all the scripts that use mysql.

But it is recomended to compile php with mysql.
Nov 27, 2009